<template>
  <div class="box">
    <h1>one组件</h1>
    <v-two></v-two>
  </div>
</template>

<script>
import vTwo from "./two.vue"
import { reactive,provide } from "vue";
export default {
    setup(){
        let user = reactive({
            name:"妲己",
            age:199
        });

        //provide将数据传递给子孙组件使用
        provide("user",user);
    },
    components:{
        vTwo
    },
}
</script>

<style>

</style>